home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / src / eval.h < prev    next >
C/C++ Source or Header  |  1999-02-04  |  4KB  |  106 lines

  1. /* $Id: eval.h,v 3.0 1998/01/31 20:51:54 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  3.0
  6.  * Copyright (C) 1995-1998  Brian Paul
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library; if not, write to the Free
  20.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23.  
  24. /*
  25.  * $Log: eval.h,v $
  26.  * Revision 3.0  1998/01/31 20:51:54  brianp
  27.  * initial rev
  28.  *
  29.  */
  30.  
  31.  
  32. #ifndef EVAL_H
  33. #define EVAL_H
  34.  
  35.  
  36. #include "types.h"
  37.  
  38.  
  39. extern void gl_init_eval( void );
  40.  
  41.  
  42. extern void gl_free_control_points( GLcontext *ctx,
  43.                                     GLenum target, GLfloat *data );
  44.  
  45.  
  46. extern GLfloat *gl_copy_map_points1f( GLenum target,
  47.                                       GLint ustride, GLint uorder,
  48.                                       const GLfloat *points );
  49.  
  50. extern GLfloat *gl_copy_map_points1d( GLenum target,
  51.                                       GLint ustride, GLint uorder,
  52.                                       const GLdouble *points );
  53.  
  54. extern GLfloat *gl_copy_map_points2f( GLenum target,
  55.                                       GLint ustride, GLint uorder,
  56.                                       GLint vstride, GLint vorder,
  57.                                       const GLfloat *points );
  58.  
  59. extern GLfloat *gl_copy_map_points2d(GLenum target,
  60.                                      GLint ustride, GLint uorder,
  61.                                      GLint vstride, GLint vorder,
  62.                                      const GLdouble *points );
  63.  
  64.  
  65. extern void gl_Map1f( GLcontext* ctx,
  66.                       GLenum target, GLfloat u1, GLfloat u2, GLint stride,
  67.                       GLint order, const GLfloat *points, GLboolean retain );
  68.  
  69. extern void gl_Map2f( GLcontext* ctx, GLenum target,
  70.                       GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
  71.                       GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
  72.                       const GLfloat *points, GLboolean retain );
  73.  
  74.  
  75. extern void gl_EvalCoord1f( GLcontext* ctx, GLfloat u );
  76.  
  77. extern void gl_EvalCoord2f( GLcontext* ctx, GLfloat u, GLfloat v );
  78.  
  79.  
  80. extern void gl_MapGrid1f( GLcontext* ctx, GLint un, GLfloat u1, GLfloat u2 );
  81.  
  82. extern void gl_MapGrid2f( GLcontext* ctx,
  83.                           GLint un, GLfloat u1, GLfloat u2,
  84.                           GLint vn, GLfloat v1, GLfloat v2 );
  85.  
  86.  
  87. extern void gl_GetMapdv( GLcontext* ctx,
  88.                          GLenum target, GLenum query, GLdouble *v );
  89.  
  90. extern void gl_GetMapfv( GLcontext* ctx,
  91.                          GLenum target, GLenum query, GLfloat *v );
  92.  
  93. extern void gl_GetMapiv( GLcontext* ctx,
  94.                          GLenum target, GLenum query, GLint *v );
  95.  
  96. extern void gl_EvalPoint1( GLcontext* ctx, GLint i );
  97.  
  98. extern void gl_EvalPoint2( GLcontext* ctx, GLint i, GLint j );
  99.  
  100. extern void gl_EvalMesh1( GLcontext* ctx, GLenum mode, GLint i1, GLint i2 );
  101.  
  102. extern void gl_EvalMesh2( GLcontext* ctx, GLenum mode,
  103.                           GLint i1, GLint i2, GLint j1, GLint j2 );
  104.  
  105. #endif
  106.